package springstudy.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springstudy.annotation.EnableHelloWorld;
import springstudy.condition.ConditionalOnSystemProperty;

/**
 * Hello World 自动装配
 * @Author acy
 * @Date 2019/04/25
 */
//@Configuration //spring 模式注解
//@EnableHelloWorld //spring @Enable 模块装配
//@ConditionalOnSystemProperty(name = "user.name",value = "acy") //spring 条件装配
public class HelloWorldAutoConfiguration {
	@Bean
	public String helloWorld(){
		return "Hello,World";
	}
}
